<template>
  <div id="app">
    <my-header></my-header>
    <router-view></router-view>
    <my-footer v-show="this.$route.meta.isShow"></my-footer>
  </div>
</template>

<script>
import myHeader from './components/Hdader'
import myFooter from './components/Footer'
export default {
  name: 'App',
  components:{
    myHeader,
    myFooter
  },
  mounted() {
    // 通知Vuex发请求，获取数据，存储到仓库中
    this.$store.dispatch('category')
  },
}
</script>

<style>

</style>
